#include "stm32f10x.h"                  // Device header
#include "OLED.h"
#include "Delay.h"
#include "Encoder.h"

int Num = 0;

int main(void)
{
	OLED_Init();
	Encoder_Init();

	OLED_ShowString(2, 1, "Count:");
	while(1)
	{
		Num += Get_Encoder_Count();
		OLED_ShowSignedNum(2, 7, Num, 5);
	}
}

